flail around like a fish out of water

Translations
se débattre comme un poisson hors de l'eau
Definitions
To move in a frantic, uncontrolled, or awkward manner, often due to confusion, panic, or being out of one's element—similar to how a fish behaves when it is removed from water.